gmmcommittees = cell(5, 1);

for i = 1 : 5
    gmmcommittees{i}.classifier = cell(8, 1);
    for j = 1 : 8
        gmmcommittees{i}.classifier{j} = gmms_data{j,i};
    end
end

gmmcommittees_dev_error = zeros(5, 1);
for i = 1 : 5
    gmmcommittees_dev_error(i) = calc_error(gmmcommittee_classify(Xdev_all, gmmcommittees{i}), ydev);
end

gmmcommittees_test_error = zeros(5, 1);
for i = 1 : 5
    gmmcommittees_test_error(i) = calc_error(gmmcommittee_classify(Xtest_all, gmmcommittees{i}), ytest);
end